# -*- coding:utf-8 -*-
# @Time: 2020/8/24 17:40
# @Author: liupengfei
# @File: urls.py

from django.urls import path
from rest_framework.routers import SimpleRouter

from .views import ArticleViewSet, RelateArticleViewSet

urlpatterns = [
    path('relate/', RelateArticleViewSet.as_view())  # 关联文章列表
]

router = SimpleRouter()
router.register('', ArticleViewSet)  # 后台Article,CRUD操作
urlpatterns += router.urls
